package com.bootdo.wx.service.impl;

import com.bootdo.wx.dao.DeviceInfoDao;
import com.bootdo.wx.domain.DeviceInfoDO;
import com.bootdo.wx.service.DeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 设备信息
 *
 * Created by Administrator.
 *
 * @autor L - 2020/5/15 - 17:06.
 */

@Service
public class DeviceInfoServiceImpl implements DeviceInfoService {

    @Autowired
    private DeviceInfoDao deviceInfoDao;
   /* @Autowired
    private TestDataDao testDataDao;*/

    @Override
    public DeviceInfoDO get(String id) {
        return deviceInfoDao.get(id);
    }

    @Override
    public List<DeviceInfoDO> list(Map<String, Object> map) {
        return deviceInfoDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return deviceInfoDao.count(map);
    }

    @Override
    public int save(DeviceInfoDO deviceInfo) {
        return deviceInfoDao.save(deviceInfo);
    }

    @Override
    public int update(DeviceInfoDO deviceInfo) {
        return deviceInfoDao.update(deviceInfo);
    }

    @Override
    public int remove(String id) {
        return deviceInfoDao.remove(id);
    }

    @Override
    public int batchRemove(String[] ids) {
        return deviceInfoDao.batchRemove(ids);
    }

    @Override
    public List<Map<String, Object>> getTestData(Map<String, Object> map) {
        return deviceInfoDao.getTestData(map);
    }

    @Override
    public int getTestDataCount(Map<String, Object> map) {
        return deviceInfoDao.getTestDataCount(map);
    }

    @Override
    public DeviceInfoDO getDeviceId(String device) {
        return deviceInfoDao.getDeviceId(device);
    }

    //获取设备信息
    @Override
    public List<DeviceInfoDO> getDeviceList(Map<String, Object> map) {
        return deviceInfoDao.getDeviceList(map);
    }

}
